package com.forumdemo.forum.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel("回复帖子")
@Data
public class ArticleReply {
    @ApiModelProperty("编号")
    private Long id;

    @ApiModelProperty("帖子 Id")// 关联 Article
    private Long articleId;


    @ApiModelProperty("回复用户编号")
    private Long postUserId;

    // 忽略，需求楼中楼功能，暂时不实现
    private Long replyId;

    // 忽略，需求楼中楼功能，暂时不实现
    private Long replyUserId;

    @ApiModelProperty("回复的正文")
    private String content;

    // 忽略，需求楼中楼功能，暂时不实现
    private Integer likeCount;

    @ApiModelProperty("帖子状态")// 0正常 1禁用
    private Byte state;

    @ApiModelProperty("删除状态")// 0正常 1禁用
    private Byte deleteState;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("回复的发布者")
    private User user;

}